home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / e_mac / s.h < prev    next >
Encoding:
Text File  |  1997-07-22  |  4.1 KB  |  178 lines  |  [TEXT/CWIE]

  1. /* Operating system and standard library dependencies. */
  2.  
  3. /* 0. This is a Unix machine. */
  4.  
  5. #undef unix
  6.  
  7. /* 1. For the runtime system. */
  8.  
  9. #define HAS_MEMMOVE
  10.  
  11. /* Define HAS_MEMMOVE if you have `memmove', and if
  12.   `memmove' is guaranteed to work even on overlapping areas.
  13.   That's the case if your library is ANSI C compliant. */
  14.  
  15. #undef HAS_BCOPY
  16.  
  17. /* Define HAS_BCOPY if you have `bcopy', and if
  18.    `bcopy' is guaranteed to work even on overlapping areas. */
  19.  
  20. #undef HAS_MEMCPY
  21.  
  22. /* Define HAS_MEMCPY if you have `memcpy', and if
  23.    `memcpy' is guaranteed to work even on overlapping areas. */
  24.  
  25. /* If none of HAS_MEMMOVE, HAS_BCOPY, and HAS_MEMCPY is defined, then we'll
  26.    use our own memory copy routine. It might be slightly slower than the
  27.    routines provided in the standard library, but at least it is guaranteed
  28.    to work. So, in doubt, don't define anything. */
  29.  
  30. #undef HAS__SETJMP
  31.  
  32. /* Define HAS__SETJMP if you have `_setjmp' and
  33.    `_longjmp' as faster variants of `setjmp' and `longjmp'. */
  34.  
  35. typedef void sighandler_return_type;
  36.  
  37. /* Define as sighandler_return_type the return type of signal handlers
  38.    (the functions that are passed to signal()). Usually `int' on older
  39.    systems, `void' on newer systems. */
  40.  
  41. #undef BSD_SIGNALS
  42.  
  43. /* Define BSD_SIGNALS if signal handlers have the BSD semantics: the handler
  44.    remains attached to the signal when the signal is received. Leave it
  45.    undefined if signal handlers have the System V semantics: the signal
  46.    resets the behavior to default. */
  47.  
  48. #define HAS_RENAME
  49.  
  50. /* Define HAS_RENAME if you have rename(). */
  51.  
  52. #define HAS_STRERROR
  53.  
  54. /* Define HAS_STRERROR if you have strerror(). */
  55.  
  56. /* 2. For the Unix library. */
  57.  
  58. #undef HAS_SOCKETS
  59.  
  60. /* Define HAS_SOCKETS if you have BSD sockets. */
  61.  
  62. #define HAS_UNISTD
  63.  
  64. /* Define HAS_UNISTD if you have /usr/include/unistd.h. */
  65.  
  66. #define HAS_DIRENT
  67.  
  68. /* Define HAS_DIRENT if you have /usr/include/dirent.h and the result of
  69.    readdir() is of type struct dirent *.
  70.    Otherwise, we'll load /usr/include/sys/dir.h, and readdir() is expected to
  71.    return a struct direct *. */
  72.  
  73. #undef HAS_LOCKF
  74.  
  75. /* Define HAS_LOCKF if the library provides the lockf() function. */
  76.  
  77. #undef HAS_MKFIFO
  78.  
  79. /* Define HAS_MKFIFO if the library provides the mkfifo() function. */
  80.  
  81. #define HAS_GETCWD
  82. #undef HAS_GETWD
  83.  
  84. /* Define HAS_GETCWD if the library provides the getcwd() function. */
  85. /* Define HAS_GETWD if the library provides the getwd() function. */
  86.  
  87. #undef HAS_GETPRIORITY
  88.  
  89. /* Define HAS_GETPRIORITY if the library provides getpriority() and
  90.    setpriority(). Otherwise, we'll use nice(). */
  91.  
  92. #define HAS_UTIME
  93. #define HAS_UTIMES
  94.  
  95. /* Define HAS_UTIME if you have /usr/include/utime.h and the library
  96.    provides utime(). Define HAS_UTIMES if the library provides utimes(). */
  97.  
  98. #undef HAS_DUP2
  99.  
  100. /* Define HAS_DUP2 if you have dup2(). */
  101.  
  102. #undef HAS_FCHMOD
  103.  
  104. /* Define HAS_FCHMOD if you have fchmod() and fchown(). */
  105.  
  106. #undef HAS_TRUNCATE
  107.  
  108. /* Define HAS_TRUNCATE if you have truncate() and
  109.    ftruncate(). */
  110.  
  111. #undef HAS_SELECT
  112.  
  113. /* Define HAS_SELECT if you have select(). */
  114.  
  115. #undef HAS_SYMLINK
  116.  
  117. /* Define HAS_SYMLINK if you have symlink() and readlink() and lstat(). */
  118.  
  119. #undef HAS_WAIT3
  120. #undef HAS_WAITPID
  121.  
  122. /* Define HAS_WAIT3 if you have wait3().
  123.    Define HAS_WAITPID if you have waitpid(). */
  124.  
  125. #undef HAS_GETGROUPS
  126.  
  127. /* Define HAS_GETGROUPS if you have getgroups(). */
  128.  
  129. #undef HAS_TERMIOS
  130.  
  131. /* Define HAS_TERMIOS if you have /usr/include/termios.h and it is
  132.    Posix-compliant. */
  133.  
  134. #undef HAS_ASYNC_IO
  135.  
  136. /* Define HAS_ASYNC_IO if BSD-style asynchronous I/O are supported
  137.    (the process can request to be sent a SIGIO signal when a descriptor
  138.    is ready for reading). */
  139.  
  140. #undef HAS_SETITIMER
  141.  
  142. /* Define HAS_SETITIMER if you have setitimer(). */
  143.  
  144. #undef HAS_GETHOSTNAME
  145.  
  146. /* Define HAS_GETHOSTNAME if you have gethostname(). */
  147.  
  148. #define HAS_UNAME
  149.  
  150. /* Define HAS_UNAME if you have uname(). */
  151.  
  152.  
  153. /* e 11Jan95 */
  154.  
  155. #define HAS_UI
  156.  
  157. #define macintosh
  158.  
  159. #define __STDC__
  160.  
  161. /* 04Sep95 e -- for mosml */
  162.  
  163. #define ANSI
  164.  
  165. // override Metrowerks behavior
  166. #define chdir  e_chdir
  167. #define getcwd e_getcwd
  168. #define getenv e_getenv
  169. #define system e_system
  170.  
  171. // 22Jul97 e
  172. #if ( __MWERKS__ >= 0x1100 )
  173. #define _atexit __atexit
  174. #endif
  175.  
  176. // end
  177.  
  178.